<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('star/index')}">明星列表</a></li>
			<li><a href="{:url('star/add')}">明星添加</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('star/index')}">
			姓名:
			<input type="text" class="form-control" name="s_name" value="{$s_name}" placeholder="请输入姓名">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('star/index')}">清空</a>
		</form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>明星姓名</th>
					<th>关注人数</th>
					<th>直播金额</th>
					<th>分成比例</th>
					<th>账户余额</th>
					<th>累计提现</th>
					<th width="90">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="star" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.s_name}</td>
					<td>{$vo.s_booked}</td>
					<td>{$vo.s_price/100}元</td>
					<td>{$vo.s_ratio}%</td>
					<td>{:number_format($vo.u_balance/100,2)}元</td>
					<td><a href='{:url("star/withdraw",array("id"=>$vo["s_udid"]))}'>{:number_format($vo.d_amount/100,2)}元</a></td>
					<td>
						<a href='{:url("star/edit",array("id"=>$vo["id"]))}'>编辑</a> |
						<a href="{:url('star/deduction',array('id'=>$vo['id']))}">扣款</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>